package com.southminority.ethnic.until;

import org.springframework.stereotype.Component;

import java.util.Random;
import java.util.UUID;


public class NumberUntil {
    public static String getYZM6()
    {
        // 生成0-999999之间的随机数
        Random random = new Random();
        int code = random.nextInt(1000000); // 0 <= code < 1000000

        // 使用String.format补0，确保结果是6位字符串
        return String.format("%06d", code);
    }
    public static String getUUID()
    {
        String uuid = UUID.randomUUID().toString().replace("-", "");
        return uuid;
    }
}
